package com.ruoyi.survey.mapper;

import java.util.List;
import com.ruoyi.survey.domain.Survey;

/**
 * surveyMapper接口
 * 
 * @author ouxin
 * @date 2025-05-22
 */
public interface SurveyMapper 
{
    /**
     * 查询survey
     * 
     * @param surveyId survey主键
     * @return survey
     */
    public Survey selectSurveyBySurveyId(Long surveyId);

    /**
     * 查询survey列表
     * 
     * @param survey survey
     * @return survey集合
     */
    public List<Survey> selectSurveyList(Survey survey);

    /**
     * 新增survey
     * 
     * @param survey survey
     * @return 结果
     */
    public int insertSurvey(Survey survey);

    /**
     * 修改survey
     * 
     * @param survey survey
     * @return 结果
     */
    public int updateSurvey(Survey survey);

    /**
     * 删除survey
     * 
     * @param surveyId survey主键
     * @return 结果
     */
    public int deleteSurveyBySurveyId(Long surveyId);

    /**
     * 批量删除survey
     * 
     * @param surveyIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSurveyBySurveyIds(Long[] surveyIds);
}
